//
//  PhotoBrowser.h
//  Modal图片浏览
//
//  Created by new-1020 on 2017/1/17.
//  Copyright © 2017年 new-1020. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol AnimatorPrsentedDelegate <NSObject>

-(CGRect)startRectWithIndexpath:(NSIndexPath *)indexpath;
-(CGRect)endRect;
-(UIImageView *)XMimageView;

@end

@protocol AnimatorDismissDelegate <NSObject>

-(NSIndexPath *)IndexpathOfEndCell;
-(UIImageView *)XMimageViewDismiss;

@end

@interface PhotoBrowser : NSObject<UIViewControllerAnimatedTransitioning,UIViewControllerTransitioningDelegate>

@property(nonatomic,weak)id <AnimatorPrsentedDelegate> presentDelegate;
@property(nonatomic,weak)id <AnimatorDismissDelegate> dismissDelegate;
@property(nonatomic,strong) NSIndexPath * indexpath;
@end
